#ifndef IOSETTINGWIDGET_H
#define IOSETTINGWIDGET_H

#include <QWidget>
#include "outputsetitem.h"
#include "inputsetitem.h"
namespace Ui {
class IOSettingWidget;
}


class IOSettingWidget : public QWidget
{
    Q_OBJECT

public:
    explicit IOSettingWidget(QWidget *parent = 0);
    static const char* DEFAULTOUTPUT;
    static const char* DEFAULTINPUT;
    static const char* NO;
    static const char* OPERATION;
    static const char* NORMALSTATUS;
    static const char* DELAYTIME;
    static const char* CONTINUETIME;
    static const char* STATUS_NORMAL_SET;
    static const char* FUNCTION_SET;

    //static void initOutput();
    void initOutputWidget();
    //void setOutputShow(int i,const QString& name);
    //static Output createOutput(int no,int operate,bool normalStatus,uint dalayTime,uint continueTime);
    //static void addOutput(Output);
    enum {
        NONE = 0,
        START,HI,OK,LO,BEEP,PICKOUT,NG,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14
    };

    enum {
        NORMALCLOSE = 0,NORMALOPEN
    };
    ~IOSettingWidget();
    //void setOutput(int no,int operation,bool normalStatus,uint delayTime,uint continueTime);

private slots:
    void on_btn_back_clicked();

    void on_btn_default_clicked();

    void on_btn_default_in_clicked();

private:
    Ui::IOSettingWidget *ui;
    QList<OutputSetItem*> mOutSetItemList;
    QList<InputSetItem*> mInSetItemList;
    //static QList<Output*> mOutputList;


};

#endif // IOSETTINGWIDGET_H
